﻿#region Copyright
// Copyright (c) 2010, Kazi Manzur Rashid <kazimanzurrashid@gmail.com>.
// This source is subject to the Microsoft Public License. 
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL. 
// All other rights reserved.
#endregion

namespace LiveWriter.Plugins
{
    using System;
    using System.Windows.Forms;

    internal partial class EditSetting<TCodeEditor> where TCodeEditor : CodeEditorBase, new()
    {
        public EditSetting()
        {
            InitializeComponent();
        }

        private void btnEdit_Click(object sender, EventArgs e)
        {
            using (TCodeEditor form = new TCodeEditor { Properties = SelectedContent.Properties })
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    OnContentEdited();
                }
            }
        }
    }
}